program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  textin, textout : TextFile;
  N, A, Sum : Integer;
  I : Integer;

begin
  Sum := 0;
  AssignFile(textin, 'input.txt');
  reset(textin);
  readln(textin, N);
  for I := 0 to N - 1 do begin
     read(textin, A);
     Sum := Sum + a;
  end;
  Write(Sum);
  Readln;
  Close(textin);
end.
